package com.munhrasoft.dinamica.business.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;

@Entity
@NamedQueries(value = { @NamedQuery(name = "findAllprocessChk", query = "SELECT pchk FROM ProcessoCheckList pchk") })
@SequenceGenerator(name = "processChkSeq", initialValue = 1, allocationSize = 1)
public class ProcessoCheckList {

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "processChkSeq")
    private Long    processChk_id;
    @Column(length = 500)
    private String  descricao;
    @Column(length = 500)
    private String  grupo;
    private Boolean checked;
    private Boolean opcional;
    private String  comentario;

    @Override
    public boolean equals(Object obj) {
        if (this.getProcessChk_id() == ((ProcessoCheckList) obj).getProcessChk_id()) {
            return true;
        } else {
            return false;
        }
    }

    public Long getProcessChk_id() {
        return processChk_id;
    }

    public void setProcessChk_id(Long processChk_id) {
        this.processChk_id = processChk_id;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public String getGrupo() {
        return grupo;
    }

    public void setGrupo(String grupo) {
        this.grupo = grupo;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getOpcional() {
        return opcional;
    }

    public void setOpcional(Boolean opcional) {
        this.opcional = opcional;
    }

    public String getComentario() {
        return comentario;
    }

    public void setComentario(String comentario) {
        this.comentario = comentario;
    }

}
